package ua.epam.muzalevskiy.traction.route;

/**
 * Current class describe stop entity.
 *
 * @author Muzalevskiy Vitaliy
 */
public class Stop {
    
    private int id;
    private String name;
    private boolean busType;
    private boolean trolleybusType;
    private boolean tramType;
    private double latitude;
    private double longitude;

    public Stop(int id, String name, boolean busType, boolean trolleybusType, 
            boolean tramType, double latitude, double longitude) {
        this.id = id;
        this.name = name;
        this.busType = busType;
        this.trolleybusType = trolleybusType;
        this.tramType = tramType;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    
    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the busType
     */
    public boolean isBusType() {
        return busType;
    }

    /**
     * @return the trolleybusType
     */
    public boolean isTrolleybusType() {
        return trolleybusType;
    }

    /**
     * @return the tramType
     */
    public boolean isTramType() {
        return tramType;
    }

    /**
     * @return the latitude
     */
    public double getLatitude() {
        return latitude;
    }

    /**
     * @return the longitude
     */
    public double getLongitude() {
        return longitude;
    }

    @Override
    public String toString() {
        return "{" + "id=" + id + ", name=" + name + ", busType=" + busType 
                + ", trolleybusType=" + trolleybusType + ", tramType=" 
                + tramType + ", latitude=" + latitude + ", longitude=" 
                + longitude + '}';
    }
    
    
    
}
